<?php

namespace App\Models;


use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class SwtReplenishmentGoods extends Model
{
    use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'swt_replenishment_goods';

    protected $guarded = [];

    public function goods()
    {
        return $this->hasOne(SwtGood::class,'id','good_id');
    }

    public function goods_quantity()
    {
        return $this->hasOne(SwtGoodQuantity::class,'goods_id','good_id');
    }
}
